package appapi.service;

import appapi.Request.ParkPageReq;
import appapi.Request.bigscreen.CarInOutReq;
import appapi.Vo.brider.AddAccess;
import appapi.Vo.brider.AddPark;
import appapi.Vo.brider.ParkVO;
import appapi.common.ResponseBean;
import appapi.dto.bigScreenDto.*;
import appapi.entity.basic.UserInfo;
import appapi.entity.bridge.ParkControl;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author hlm
 * @date
 * @description: 闸机设备
 */
@Repository
public interface ParkService extends IService<ParkControl> {

    /**
     * 分页查询闸机设备列表
     *
     * @return
     */
    PageInfo<ParkVO> getParkByPage(ParkPageReq req);

    /**
     * 新增
     *
     * @return
     */
    ResponseBean insertPark(AddPark addPark , UserInfo userInfo);


    /**
     * 删除
     *
     * @return
     */
    void delPark(Long parkId);


    /**
     * 详情
     *
     * @return
     */
    ResponseBean<ParkVO> getParkModel(Long parkId);

    CarInOutDto getCarInOutStatic(CarInOutReq req);

    List<CarDayInOutDto> getCarDayInOutStatic(CarInOutReq req);

    CarStaticDto getCarStatic(CarInOutReq req);

    PersonStaticDto getPersonCarStatic(CarInOutReq req);
    CarOvernightDto getOvernightStatic(CarInOutReq req);
}
